﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AdvDataLayer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            using (var db = new AdvestorMainDBEntities())
            {
                var query = from b in db.AdModeTbls
                            orderby b.AdModeDescroption
                            select b;

                foreach (var item in query)
                {
                    Console.WriteLine(item.AdModeDescroption);
                }
            }
            
        }
    }
}
